<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 仁
  Date: 2021-01-29
  Time: 9:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<head>
    <title>汽车租赁管理系统</title>
    <base href="<%=request.getContextPath()%>/"/>
    <link rel="stylesheet" href="webjars/layui/2.5.5/css/layui.css">
</head>

<body style="background: #d2d2d2;">
<div class="layui-card" style="width: 50%;margin: 220px auto">
    <div class="layui-card-header">汽车租赁管理系统</div>
    <div class="layui-card-body">
        <form method="post" action="login" class="layui-form" style="padding: 40px 50px 0px 30px">
            <c:if test="${not empty loginErr}">
                <div class="layui-form-item">
                    <label class="layui-form-label"></label>
                    <div class="layui-input-block" style="color: red">
                        ${loginErr}
                    </div>
                </div>
            </c:if>
            <div class="layui-form-item">
                <label class="layui-form-label">登入名:</label>
                <div class="layui-input-block">
                    <input type="text" name="loginname" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码:</label>
                <div class="layui-input-block">
                    <input type="text" name="pwd" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div class="layui-input-block">
                    <input type="submit" class="layui-btn" value="登&emsp;录">
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>
